﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="guanli.aspx.cs" Inherits="CMS.guanli" %>

<!DOCTYPE html>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>班级成员</title>
    <link rel="stylesheet" type="text/css" href="css/basic.css" />
    <link rel="stylesheet" type="text/css" href="css/chengyuan.css" />
    <link rel="stylesheet" type="text/css" href="css/guanli.css" />
</head>
<body>
    <form id="form1" runat="server">
        <div id="main">
            <div id="top">
                欢迎您：<span id="stu_no" class="span1" runat="server"></span>
                <span id="stu_name" class="span2" runat="server"></span>同学
            </div>

            <div id="left">
                <div class="header">
                </div>

                <div class="body">
                    <a id="A1" href="index.aspx" runat="server">班级公告</a>
                    <a id="A2" href="guanli.aspx" runat="server">成员管理</a>
                    <a href="log.aspx">安全退出</a>
                </div>
            </div>

            <div id="right">
                <p id="index">当前位置 -- <span id="position">班级成员</span></p>

                <div id="data">
                    <h1>成员表</h1>
                    <table>
                        <tr>
                            <th>学号</th>
                            <th>姓名</th>
                            <th>年龄</th>
                            <th>地址</th>
                            <th>长号</th>
                            <th>短号</th>
                            <th>身份证</th>
                            <th>职位</th>
                            <th>修改</th>
                            <th>删除</th>
                        </tr>
                        <% while (dr != null && dr.Read())
                           { %>
                        <tr>
                            <td><% Response.Write(dr["StuNo"].ToString());%></td>
                            <td><% Response.Write(dr["StuName"].ToString());%></td>
                            <td><% Response.Write(dr["age"].ToString());%></td>
                            <td><% Response.Write(dr["address"].ToString());%></td>
                            <td><% Response.Write(dr["LNumber"].ToString());%></td>
                            <td><% Response.Write(dr["SNumber"].ToString());%></td>
                            <td><% Response.Write(dr["IDC"].ToString());%></td>
                            <td><% Response.Write(dr["position"].ToString());%></td>
                            <td><% string stuNo1 = dr["StuNo"].ToString(); string url1 = "<a href='guanli.aspx?StuNo={0}&type=update'>修改</a>"; url1 = String.Format(url1, stuNo1); Response.Write(url1); %></td>
                            <td><%  string stuNo2 = dr["StuNo"].ToString(); string url2 = "<a href='guanli.aspx?StuNo={0}&type=del'>删除</a>"; url2 = string.Format(url2, stuNo2); Response.Write(url2); %></td>
                        </tr>
                        <% } %>
                    </table>
                    <p><% Response.Write(fenye.navigate);%></p>
                </div>
            </div>


           <%-- <div id="xiugai">
                <asp:Label ID="Label1" runat="server" Text="学　号："></asp:Label><asp:TextBox ID="stuno" runat="server"></asp:TextBox><br />
                <asp:Label ID="Label2" runat="server" Text="姓　名："></asp:Label><asp:TextBox ID="name" runat="server"></asp:TextBox><br />
                <asp:Label ID="Label3" runat="server" Text="年　龄："></asp:Label><asp:TextBox ID="age" runat="server"></asp:TextBox><br />
                <asp:Label ID="Label4" runat="server" Text="地　址："></asp:Label><asp:TextBox ID="addr" runat="server"></asp:TextBox><br />
                <asp:Label ID="Label5" runat="server" Text="长　号："></asp:Label><asp:TextBox ID="LN" runat="server"></asp:TextBox><br />
                <asp:Label ID="Label6" runat="server" Text="短　号："></asp:Label><asp:TextBox ID="SN" runat="server"></asp:TextBox><br />
                <asp:Label ID="Label7" runat="server" Text="身份证："></asp:Label><asp:TextBox ID="IDC" runat="server"></asp:TextBox><br />
                <asp:Label ID="Label8" runat="server" Text="职　位："></asp:Label><asp:TextBox ID="POS" runat="server"></asp:TextBox><br />
                <asp:Button ID="queding" runat="server" Text="确定" />
            </div>--%>


            <div id="bottom">
            </div>
        </div>
    </form>
</body>
</html>
